﻿

#include <iostream>
#include <vector>
using namespace std;

int main()
{
	vector<int> vt = { 0xBB,0xAA,0xCC,0xDD };
	vector<int> a = { 0xBB, 0xCC, 0xA0, 0xBC, 0xDC, 0xD1, 0xBE, 0xB8, 0xCD, 0xCF,
					 0xBE, 0xAE, 0xD2, 0xC4, 0xAB, 0x82, 0xD2, 0xD9, 0x93, 0xB3,
					 0xD4, 0xDE, 0x93, 0xA9, 0xD3, 0xCB, 0xB8, 0x82, 0xD3, 0xCB,
					 0xBE, 0xB9, 0x9A, 0xD7, 0xCC, 0xDD };
	vector<int>::iterator it_vt, it_a;
	it_a = a.begin();
	it_vt = vt.begin();
	char s;
	while (it_a != a.end()) 
	{
		if (it_vt == vt.end()) 
		{
			it_vt = vt.begin();
		}
		s = (*it_vt) ^ (*it_a);
		cout << s;
		it_vt++;
		it_a++;
	}
}
